home *** CD-ROM | disk | FTP | other *** search
- /*
- * CBLibrary - hourglass
- * Copyright (C) 2003 Chris Bazley
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
- /* Original version by Tony Houghton for !FormText */
-
- #ifndef hourglass_h
- #define hourglass_h
-
- #ifndef __swis_h
- #include "swis.h"
- #endif
-
- #ifndef DEBUG
-
- #define hourglass_on() _swix(Hourglass_On, 0)
- #define hourglass_off() _swix(Hourglass_Off, 0)
- #define hourglass_percentage(a) _swix(Hourglass_Percentage, _IN(0), (a))
-
- #else
-
- #include "kernel.h"
- #define hourglass_on() \
- { \
- _swix(Hourglass_On, 0); \
- _kernel_oscli("report Hourglass_On"); \
- }
- #define hourglass_off() \
- { \
- _swix(Hourglass_Off, 0); \
- _kernel_oscli("report Hourglass_Off"); \
- }
- #define hourglass_percentage(a) \
- { \
- char string[255]; \
- _swix(Hourglass_Percentage, _IN(0), (a)); \
- sprintf(string, "report Hourglass_Percentage %d", a); \
- _kernel_oscli(string); \
- }
- #endif
-
- #endif
-